import { createSSRApp } from "vue";
import { createPinia } from 'pinia';
import App from "./App.vue";

import { useCounterStore } from './store';
export function createApp() {
  const app = createSSRApp(App);
  /** pinia全局状态管理 */
  const pinia = createPinia();
  app.use(pinia);
  /** 开启vconsole */
  // useCounterStore(pinia);
  return {
    app
  };
}
